<!--
 @description 经销商解冻/冻结-预览
 @fileName index.vue
 @author zengqiongying
 @created 2023/04/21 10:42:06
-->
<template>
  <div>
    <DetailInfo :id="id" @data-change="onDataChange" />
  </div>
</template>

<script lang="ts">
  import { ref, getCurrentInstance } from 'vue'
  import { useRoute } from 'vue-router'
  import DetailInfo from './components/DetailInfo.vue'
  export default {
    name: 'DealerFreezeAndthawPreview',
    components: { DetailInfo },
    setup() {
      const { proxy }: any = getCurrentInstance()
      const $route = useRoute()
      const id = ref(`${$route.query.id || ''}`)
      const onDataChange = (data: any) => {
        proxy.$SimpleEvents.emit('routeMetaTitle', data.type === 'F' ? '解冻预览' : '冻结预览')
      }
      return {
        id,
        onDataChange
      }
    }
  }
</script>
<style lang="less" scoped></style>
